package com.jiexin.param;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: Jay_Liu
 * @Description:
 * @Date: Created in 21:21 2018/4/1 0001
 * @Modified By:
 */
@Getter
@Setter
public class TestVo {

    //不可以为空
    @NotBlank
    private String msg;

    //不满足条件报错信息自定义
    @NotNull(message = "id不可以为空")
    @Max(value = 10, message = "id不能大于10")
    @Min(value = 0, message = "id至少大于0")
    private Integer id;

    private List<String> str;
}
